diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-03-24 11:04:41 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-03-24 11:04:41 +0100 |
commit | 5423cabbbf2b6dec5568f1ecabd288d5d9a642ec (patch) | |
tree | f316a6a921bfefd3a63bd4502c2eb50ff1644f67 /nixpkgs/pkgs/by-name/hy/hyprdim/package.nix | |
parent | 46a88117a05c3469af5d99433af140c3de8ca088 (diff) | |
parent | 8aa81f34981add12aecada6c702ddbbd0375ca36 (diff) | |
download | nixlib-5423cabbbf2b6dec5568f1ecabd288d5d9a642ec.tar nixlib-5423cabbbf2b6dec5568f1ecabd288d5d9a642ec.tar.gz nixlib-5423cabbbf2b6dec5568f1ecabd288d5d9a642ec.tar.bz2 nixlib-5423cabbbf2b6dec5568f1ecabd288d5d9a642ec.tar.lz nixlib-5423cabbbf2b6dec5568f1ecabd288d5d9a642ec.tar.xz nixlib-5423cabbbf2b6dec5568f1ecabd288d5d9a642ec.tar.zst nixlib-5423cabbbf2b6dec5568f1ecabd288d5d9a642ec.zip |
Merge branch 'nixos-unstable-small' of https://github.com/NixOS/nixpkgs
Diffstat (limited to 'nixpkgs/pkgs/by-name/hy/hyprdim/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/hy/hyprdim/package.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/hy/hyprdim/package.nix b/nixpkgs/pkgs/by-name/hy/hyprdim/package.nix new file mode 100644 index 000000000000..ee0df4f9fc03 --- /dev/null +++ b/nixpkgs/pkgs/by-name/hy/hyprdim/package.nix @@ -0,0 +1,43 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + installShellFiles, + nix-update-script, +}: + +rustPlatform.buildRustPackage rec { + pname = "hyprdim"; + version = "2.2.3"; + + src = fetchFromGitHub { + owner = "donovanglover"; + repo = "hyprdim"; + rev = version; + hash = "sha256-Eeh0D3DkC4ureDUE+BXTGcMFNmZ0hLSidlKlL4ZDgsQ="; + }; + + cargoHash = "sha256-hgcGzRLB1L3yxJjw1ECDJPmbl1W+2OS4KDojclyVYrc="; + + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + installManPage target/man/hyprdim.1 + + installShellCompletion --cmd hyprdim \ + --bash target/completions/hyprdim.bash \ + --fish target/completions/hyprdim.fish \ + --zsh target/completions/_hyprdim + ''; + + passthru.updateScript = nix-update-script { }; + + meta = with lib; { + description = "Automatically dim windows in Hyprland when switching between them"; + homepage = "https://github.com/donovanglover/hyprdim"; + license = licenses.gpl3Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ donovanglover ]; + mainProgram = "hyprdim"; + }; +} |