Skip to content

Commit

Permalink
feat: use drvSrc argument
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed Jan 29, 2021
1 parent 5fb959b commit e67750b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ result*
buildconfig.rs
installer.log

# this is a library not an app, so it should work accross most versions
# this ensures the version we are using is a random one, so we can ensure it works as it should anywhere
flake.lock
5 changes: 2 additions & 3 deletions package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
, makeWrapper
, nixpkgs
, conf-tool
, shellHookAppend ? "" # only used by shell.nix to add channels to NIX_PATH
, nixDistinst ? nixFlakes
, makeRustPlatform
, system
, drvSrc ? ./.
}:

let
Expand Down Expand Up @@ -78,7 +78,7 @@ with rust; (makeRustPlatform packages.stable).buildRustPackage rec {
pname = "distinst";
version = "0.0.1";

src = ./.;
src = drvSrc;

cargoSha256 = "sha256-0JZrFJ/b+HHZyyVjppX1dcjiN4YSz6FakfONZxSAeT8=";

Expand Down Expand Up @@ -141,7 +141,6 @@ with rust; (makeRustPlatform packages.stable).buildRustPackage rec {
shellHook = ''
${preBuild}
export PATH="${lib.makeBinPath tools}:$PATH"
${shellHookAppend}
'';

doCheck = false;
Expand Down

0 comments on commit e67750b

Please sign in to comment.