23 lines
464 B
Nix
23 lines
464 B
Nix
|
{ pkgs ? import <nixpkgs> { }
|
||
|
, fetchFromGitea ? pkgs.fetchFromGitea
|
||
|
}:
|
||
|
pkgs.stdenv.mkDerivation {
|
||
|
pname = "kunst";
|
||
|
name = "kunst";
|
||
|
|
||
|
src = fetchFromGitea {
|
||
|
domain = "git.bitlab21.com";
|
||
|
owner = "sam";
|
||
|
repo = "kunst";
|
||
|
rev = "efff362ab9ea14cae2bb6c5d246601011e345732";
|
||
|
sha256 = "sha256-AeAYh2z2Ty9rYfgm+EhYB99OI87aWqLURDbfT0N3wUg=";
|
||
|
};
|
||
|
|
||
|
installPhase = ''
|
||
|
mkdir -p $out/bin
|
||
|
mv kunst $out/bin
|
||
|
chmod 755 $out/bin/kunst
|
||
|
'';
|
||
|
|
||
|
}
|