mirror of
https://github.com/Novattz/creamlinux-installer.git
synced 2026-05-16 11:12:44 -04:00
automate npm dependencies hash fetch
This commit is contained in:
+1
-4
@@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
pkgs ?
|
pkgs ? import <nixpkgs> { },
|
||||||
import
|
|
||||||
(fetchTarball "https://github.com/NixOS/nixpkgs/archive/c6d65881c5624c9cae5ea6cedef24699b0c0a4c0.tar.gz")
|
|
||||||
{ },
|
|
||||||
}:
|
}:
|
||||||
pkgs.callPackage ./package.nix { }
|
pkgs.callPackage ./package.nix { }
|
||||||
|
|||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
hash=$(nix-shell -p prefetch-npm-deps --run "prefetch-npm-deps package-lock.json" 2>/dev/null)
|
||||||
|
echo "New hash: $hash"
|
||||||
|
sed -i "s|hash = \"[^\"]*\"|hash = \"$hash\"|" package.nix
|
||||||
Reference in New Issue
Block a user