mirror of
https://github.com/MichaelFisher1997/nixos.git
synced 2025-04-28 00:33:11 +00:00
32 lines
722 B
Nix
32 lines
722 B
Nix
![]() |
{ pkgs ? import <nixpkgs> {} }:
|
||
|
|
||
|
pkgs.stdenv.mkDerivation {
|
||
|
pname = "hyprshot";
|
||
|
|
||
|
src = pkgs.fetchFromGitHub {
|
||
|
owner = "Gustash";
|
||
|
repo = "hyprshot";
|
||
|
rev = "main"; # Specify the commit hash or branch name
|
||
|
sha256 = "nix-prefetch-git https://github.com/Gustash/hyprshot
|
||
|
"; # Fill with the actual sha256 hash
|
||
|
};
|
||
|
|
||
|
buildPhase = ''
|
||
|
# Add build instructions if required, e.g., make
|
||
|
echo "Building hyprshot"
|
||
|
'';
|
||
|
|
||
|
installPhase = ''
|
||
|
mkdir -p $out/bin
|
||
|
ln -s $src/hyprshot $out/bin/hyprshot
|
||
|
chmod +x $src/hyprshot
|
||
|
'';
|
||
|
|
||
|
meta = {
|
||
|
description = "A brief description of hyprshot";
|
||
|
homepage = "https://github.com/Gustash/hyprshot.git";
|
||
|
license = pkgs.lib.licenses.mit;
|
||
|
};
|
||
|
}
|
||
|
|