Skip to content

Commit

Permalink
add nix derivation
Browse files Browse the repository at this point in the history
  • Loading branch information
timbertson committed Sep 6, 2022
1 parent 44a0db9 commit 6147bbd
Show file tree
Hide file tree
Showing 8 changed files with 2,089 additions and 19 deletions.
18 changes: 0 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
members = [ "cli", "inject" ]
members = [ "cli" ]
exclude = ["redhook"]

[profile.release]
Expand Down
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import ./nix
19 changes: 19 additions & 0 deletions nix/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ pkgs ? import <nixpkgs> {}}:
with pkgs;
let
sources = import ./sources.nix {};
root = builtins.fetchGit { url = ../.; };
fetlock = (callPackage sources.fetlock {});
osx = darwin.apple_sdk.frameworks;
selection = fetlock.cargo.load ./lock.nix {
pkgOverrides = self: [
(self.overrideAttrs {
runix = base: { src = "${root}/cli"; };
})
(self.addBuildInputs {
runix = if stdenv.isDarwin then [ osx.Security ] else [];
})
];
};
in
selection.drvsByName.runix
Loading

0 comments on commit 6147bbd

Please sign in to comment.