mirror of
https://github.com/nix-community/nurl.git
synced 2024-09-11 01:59:08 +03:00
flake: add devShell
This commit is contained in:
parent
23b36061c8
commit
8865d05a67
18
flake.nix
18
flake.nix
@ -25,8 +25,21 @@
|
|||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
]
|
]
|
||||||
(system: f nixpkgs.legacyPackages.${system});
|
(system: f nixpkgs.legacyPackages.${system});
|
||||||
|
|
||||||
|
runtimeInputs = pkgs:
|
||||||
|
with pkgs; [
|
||||||
|
gitMinimal
|
||||||
|
mercurial
|
||||||
|
nixVersions.unstable
|
||||||
|
];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
devShells = eachSystem (pkgs: {
|
||||||
|
default = pkgs.mkShell {
|
||||||
|
packages = runtimeInputs pkgs;
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
formatter = eachSystem (pkgs: pkgs.nixpkgs-fmt);
|
formatter = eachSystem (pkgs: pkgs.nixpkgs-fmt);
|
||||||
|
|
||||||
herculesCI.ciSystems = [
|
herculesCI.ciSystems = [
|
||||||
@ -38,11 +51,8 @@
|
|||||||
let
|
let
|
||||||
inherit (pkgs)
|
inherit (pkgs)
|
||||||
darwin
|
darwin
|
||||||
gitMinimal
|
|
||||||
installShellFiles
|
installShellFiles
|
||||||
makeBinaryWrapper
|
makeBinaryWrapper
|
||||||
mercurial
|
|
||||||
nixVersions
|
|
||||||
rustPlatform
|
rustPlatform
|
||||||
stdenv
|
stdenv
|
||||||
;
|
;
|
||||||
@ -83,7 +93,7 @@
|
|||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/nurl \
|
wrapProgram $out/bin/nurl \
|
||||||
--prefix PATH : ${makeBinPath [ gitMinimal mercurial nixVersions.unstable ]}
|
--prefix PATH : ${makeBinPath (runtimeInputs pkgs)}
|
||||||
installManPage artifacts/nurl.1
|
installManPage artifacts/nurl.1
|
||||||
installShellCompletion artifacts/nurl.{bash,fish} --zsh artifacts/_nurl
|
installShellCompletion artifacts/nurl.{bash,fish} --zsh artifacts/_nurl
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user