default.nix file
Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
parent
9c172287ac
commit
abd6ae4348
|
@ -1 +1,2 @@
|
||||||
/target
|
/target
|
||||||
|
result
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
{ pkgs ? import <nixpkgs> { }, rustPlatform ? pkgs.rustPlatform
|
||||||
|
, pkg-config ? pkgs.pkg-config, dbus ? pkgs.dbus }:
|
||||||
|
|
||||||
|
let
|
||||||
|
src = builtins.filterSource
|
||||||
|
(path: type: type != "directory" || builtins.baseNameOf path != "target")
|
||||||
|
./.;
|
||||||
|
in rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "nanpa";
|
||||||
|
version = "0.1.0";
|
||||||
|
|
||||||
|
inherit src;
|
||||||
|
|
||||||
|
buildInputs = [ dbus ];
|
||||||
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
|
cargoSha256 = "1brlq4ilzhbz25sblcqxl2hkd8g7i79g6xijrzmk5fbb4qlq1fz7";
|
||||||
|
}
|
Loading…
Reference in New Issue