From bb759a048a6763a29c925f6d3ff31099099773b1 Mon Sep 17 00:00:00 2001 From: unexplrd Date: Sun, 25 Jan 2026 19:44:18 +0200 Subject: [PATCH] 1769363058 --- .config/{create-work => create-work.nu} | 0 flake.nix | 18 +++++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) rename .config/{create-work => create-work.nu} (100%) diff --git a/.config/create-work b/.config/create-work.nu similarity index 100% rename from .config/create-work rename to .config/create-work.nu diff --git a/flake.nix b/flake.nix index 1db0c23..d2da59c 100644 --- a/flake.nix +++ b/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 + ]; }; }); }