diff options
| author | cashmere <cashmere@autistici.org> | 2026-07-21 14:27:38 +0200 |
|---|---|---|
| committer | cashmere <cashmere@autistici.org> | 2026-07-21 14:27:38 +0200 |
| commit | e2f5e1267cc30b73202c85aacfaee0cd6b18193c (patch) | |
| tree | acb8648ed49756b79a744c49552c78ce31f526ca /nix/package.nix | |
| parent | 198f374a18b5c8a0e21f7d41125393aa89523f5c (diff) | |
| download | i3bar-mango-e2f5e1267cc30b73202c85aacfaee0cd6b18193c.tar.gz | |
package with npins and nix
- npins pins nixpkgs-unstable
- nix/package.nix: rustPlatform.buildRustPackage with pkg-config,
glib, cairo, pango and harfbuzz
- default.nix exposes packages.default
- ignore nix-build result symlink
Diffstat (limited to 'nix/package.nix')
| -rw-r--r-- | nix/package.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/nix/package.nix b/nix/package.nix new file mode 100644 index 0000000..a9eace2 --- /dev/null +++ b/nix/package.nix @@ -0,0 +1,36 @@ +{ + lib, + rustPlatform, + pkg-config, + glib, + cairo, + pango, + harfbuzz, +}: + +let + cargoToml = builtins.fromTOML (builtins.readFile ../Cargo.toml); +in +rustPlatform.buildRustPackage { + pname = cargoToml.package.name; + version = cargoToml.package.version; + + src = ../.; + + cargoLock.lockFile = ../Cargo.lock; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ + glib + cairo + pango + harfbuzz + ]; + + meta = { + description = cargoToml.package.description; + homepage = cargoToml.package.repository; + license = lib.licenses.gpl3Only; + mainProgram = "i3bar-river"; + }; +} |
