1769363058
This commit is contained in:
18
flake.nix
18
flake.nix
@@ -7,14 +7,30 @@
|
||||
outputs = {
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
self,
|
||||
...
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (system: let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
# inherit (pkgs) lib;
|
||||
in {
|
||||
packages.nure-work = pkgs.stdenv.mkDerivation rec {
|
||||
pname = "nure-work";
|
||||
version = "0.0.1";
|
||||
|
||||
buildInputs = [pkgs.nushell];
|
||||
|
||||
phases = "installPhase";
|
||||
installPhase = ''
|
||||
cp -r ${pkgs.writeScriptBin "nw" (builtins.readFile ./.config/create-work.nu)}/ $out/
|
||||
'';
|
||||
};
|
||||
devShells.default = pkgs.mkShellNoCC {
|
||||
packages = with pkgs; [nushell just];
|
||||
packages = with pkgs; [
|
||||
self.packages.${system}.nure-work
|
||||
nushell
|
||||
just
|
||||
];
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user