Use nixFlakes in devShell
This commit is contained in:
parent
a74dec6fb1
commit
1c9e22e73c
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"inputs": {
|
||||
"nix": {
|
||||
"nix/ab16b3d076e9cd3ecfdcde128f43dd486b072557": {
|
||||
"id": "nix",
|
||||
"inputs": {
|
||||
"nixpkgs": {
|
||||
|
@ -11,9 +11,9 @@
|
|||
"uri": "github:edolstra/nixpkgs/62ac6f7f504c8d3998558d9b269d22d26f13f1f0"
|
||||
}
|
||||
},
|
||||
"narHash": "sha256-MjLaMAh/KtAksnMwOH2GJn+YRJ4szwx24ybFXHTmShU=",
|
||||
"narHash": "sha256-I9YtUO9Ia5CwiTFo4QzSYdZHO2G+BQ7sM4MSq29NDqc=",
|
||||
"nonFlakeInputs": {},
|
||||
"uri": "github:NixOS/nix/5d8ec94d7fe4eded9f836bc49449d6eaff8fbc8f"
|
||||
"uri": "github:NixOS/nix/ab16b3d076e9cd3ecfdcde128f43dd486b072557"
|
||||
},
|
||||
"nixpkgs": {
|
||||
"id": "nixpkgs",
|
||||
|
|
17
flake.nix
17
flake.nix
|
@ -5,16 +5,22 @@
|
|||
|
||||
epoch = 201906;
|
||||
|
||||
inputs = [ "nixpkgs" "nix" ];
|
||||
inputs =
|
||||
[ "nixpkgs"
|
||||
"nix/ab16b3d076e9cd3ecfdcde128f43dd486b072557"
|
||||
];
|
||||
|
||||
outputs = inputs: rec {
|
||||
outputs = inputs:
|
||||
let
|
||||
nix = inputs.nix.outputs.hydraJobs.build.x86_64-linux // {
|
||||
perl-bindings = inputs.nix.outputs.hydraJobs.perlBindings.x86_64-linux;
|
||||
};
|
||||
in rec {
|
||||
|
||||
hydraJobs = import ./release.nix {
|
||||
hydraSrc = inputs.self;
|
||||
nixpkgs = inputs.nixpkgs;
|
||||
nix = inputs.nix.outputs.hydraJobs.build.x86_64-linux // {
|
||||
perl-bindings = inputs.nix.outputs.hydraJobs.perlBindings.x86_64-linux;
|
||||
};
|
||||
inherit nix;
|
||||
};
|
||||
|
||||
checks.build = hydraJobs.build.x86_64-linux;
|
||||
|
@ -28,6 +34,7 @@
|
|||
hydraSrc = inputs.self;
|
||||
nixpkgs = inputs.nixpkgs;
|
||||
shell = true;
|
||||
inherit nix;
|
||||
}).build.x86_64-linux;
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue