17 lines
432 B
Nix
17 lines
432 B
Nix
{ lib, stdenv, fetchzip }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "cockpit-zfs-manager";
|
|
version = "1.3.1";
|
|
githubUsername = "45Drives";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/${githubUsername}/${pname}/archive/refs/tags/v${version}.tar.gz";
|
|
sha256 = "sha256-ge3wrri/eG1HprFSBYkjlqLzYOM3S4gUoqyE1w2Grz8=";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/cockpit
|
|
cp -r ${src}/zfs $out/share/cockpit/zfs
|
|
'';
|
|
}
|