1769363058

This commit is contained in:
2026-01-25 19:44:18 +02:00
parent 56e261b9b8
commit bb759a048a
2 changed files with 17 additions and 1 deletions

View File

@@ -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
];
};
});
}