You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 

31 lines
795 B

{ ... }:
let
sources = import ./nix/sources.nix;
nixpkgs = import sources.nixpkgs { };
gitignore = import sources.gitignore { };
rusty-parts = nixpkgs.pkgs.rustPlatform.buildRustPackage {
name = "zettel";
src = gitignore.gitignoreSource ./.;
# note: when updating, this needs to be set to all 1's so that Nix will
# re-fetch the dependencies from crates.io
cargoSha256 = "1mwljyqzxsmww7k33qc1c3wc0l3yr2q5xcim68m3hb4xprvyvhjp";
verifyCargoDeps = true;
};
in with nixpkgs;
stdenv.mkDerivation {
name = "zettel";
src = ./bin;
buildInputs = [ ];
buildPhase = "true";
installPhase = ''
mkdir -p $out/bin
cp * $out/bin
# do these second so rusty binaries will take precedence overy shelly ones.
cp ${rusty-parts}/bin/* $out/bin
'';
}