From 8865d05a675667248007235fb33597600f58f32b Mon Sep 17 00:00:00 2001 From: figsoda Date: Wed, 26 Apr 2023 21:01:43 -0400 Subject: [PATCH] flake: add devShell --- flake.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 2392597..057b001 100644 --- a/flake.nix +++ b/flake.nix @@ -25,8 +25,21 @@ "x86_64-linux" ] (system: f nixpkgs.legacyPackages.${system}); + + runtimeInputs = pkgs: + with pkgs; [ + gitMinimal + mercurial + nixVersions.unstable + ]; in { + devShells = eachSystem (pkgs: { + default = pkgs.mkShell { + packages = runtimeInputs pkgs; + }; + }); + formatter = eachSystem (pkgs: pkgs.nixpkgs-fmt); herculesCI.ciSystems = [ @@ -38,11 +51,8 @@ let inherit (pkgs) darwin - gitMinimal installShellFiles makeBinaryWrapper - mercurial - nixVersions rustPlatform stdenv ; @@ -83,7 +93,7 @@ postInstall = '' wrapProgram $out/bin/nurl \ - --prefix PATH : ${makeBinPath [ gitMinimal mercurial nixVersions.unstable ]} + --prefix PATH : ${makeBinPath (runtimeInputs pkgs)} installManPage artifacts/nurl.1 installShellCompletion artifacts/nurl.{bash,fish} --zsh artifacts/_nurl '';