add nix update script
This commit is contained in:
parent
8038f967cc
commit
51ee15e659
30
flake.nix
30
flake.nix
|
@ -14,18 +14,30 @@
|
|||
in
|
||||
{
|
||||
|
||||
packages.x86_64-linux.mobilizon = pkgs.callPackage ./. {
|
||||
src = filter {
|
||||
root = ./.;
|
||||
exclude = [ (filter.matchExt "nix") ];
|
||||
packages.x86_64-linux = {
|
||||
mobilizon = pkgs.callPackage ./. {
|
||||
src = filter {
|
||||
root = ./.;
|
||||
exclude = [ (filter.matchExt "nix") ];
|
||||
};
|
||||
mobilizon-js = self.packages.x86_64-linux.mobilizon-frontend;
|
||||
};
|
||||
mobilizon-js = self.packages.x86_64-linux.mobilizon-frontend;
|
||||
|
||||
mobilizon-frontend = pkgs.callPackage ./js { inherit filter; };
|
||||
|
||||
default = self.packages.x86_64-linux.mobilizon;
|
||||
|
||||
# Update local Mobilizon definition
|
||||
update =
|
||||
pkgs.writeShellScriptBin "update" ''
|
||||
set -eou pipefail
|
||||
|
||||
${pkgs.yarn2nix}/bin/yarn2nix --lockfile="./js/yarn.lock" > js/yarn.nix
|
||||
${pkgs.mix2nix}/bin/mix2nix ./mix.lock > mix.nix
|
||||
'';
|
||||
|
||||
};
|
||||
|
||||
packages.x86_64-linux.mobilizon-frontend = pkgs.callPackage ./js { inherit filter; };
|
||||
|
||||
packages.x86_64-linux.default = self.packages.x86_64-linux.mobilizon;
|
||||
|
||||
devShells.x86_64-linux.default =
|
||||
let
|
||||
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||
|
|
Loading…
Reference in a new issue