Added a nix derivation to build the project.
This commit is contained in:
15
default.nix
Normal file
15
default.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ pkgs ? import <nixpkgs> {}, ...}:
|
||||
|
||||
let
|
||||
lockfile = pkgs.fetchurl {
|
||||
url = "https://git.emin.engineer/haxala1r/unildd/raw/branch/nix/Cargo.lock";
|
||||
sha256 = "sha256-FV9vhIa/6wLZDz+rhvlKtjMKELUvsucpXP9YaQamBC0=";
|
||||
};
|
||||
in
|
||||
pkgs.rustPlatform.buildRustPackage {
|
||||
pname = "unildd";
|
||||
version = "0.1.0";
|
||||
src = pkgs.lib.cleanSource ./.;
|
||||
cargoLock.lockFile = lockfile;
|
||||
cargoHash = "sha256-BP5oMhpR8a2469DpmyYlyPqfG/ypZCTF+N/hJ9ZSCTQ=";
|
||||
}
|
||||
Reference in New Issue
Block a user