Add default.nix to make this easy to build

This commit is contained in:
Artemis Tosini 2021-07-29 14:53:43 +00:00
parent 60004c3c8d
commit 3f69c3d2eb
Signed by: artemist
GPG key ID: ADFFE553DCBB831E
3 changed files with 23 additions and 1 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
/result
/target

21
default.nix Normal file
View file

@ -0,0 +1,21 @@
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
rustPlatform.buildRustPackage rec {
name = "rustybar";
version = "0.1";
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
RUSTC_BOOTSTRAP = 1;
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ dbus ];
meta = with lib; {
homepage = "https://github.com/mildlyfunctionalgays/rustybar";
description = "swaybar/i3bar command in Rust";
maintainers = with maintainers; [ artemist ];
license = with licenses; [ mit ];
platforms = platforms.linux;
};
}