This repository was archived by the owner on Nov 11, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
55 lines (47 loc) · 1.29 KB
/
flake.nix
File metadata and controls
55 lines (47 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
inputs = {
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
tapemgr = pkgs.buildGoModule {
pname = "tapemgr";
version = "1.0.0";
src = ./.;
vendorHash = "sha256-RlZWXxJcNHc7WeJ7kIHCeOiYi3JrkT/0UTeYdsyUuoU=";
buildInputs = [];
};
tapemgr-ltfs = pkgs.stdenv.mkDerivation rec {
pname = "tapemgr-ltfs";
version = "1.0.0";
src = pkgs.fetchFromGitHub {
rev = "9d232e551628d954c41497a45aedf2315ffca591";
owner = "LinearTapeFileSystem";
repo = "ltfs";
hash = "sha256-lUEE47EblyoF53OktDTPHbNQ514nTLPMPSbciiLESGA=";
};
sourceRoot = "${src.name}";
nativeBuildInputs = with pkgs; [
pkg-config
autoreconfHook
];
buildInputs = with pkgs; [
fuse
icu66
libxml2
libuuid
];
configureFlags = [
"--disable-snmp"
];
};
in
{
packages = {
inherit tapemgr tapemgr-ltfs;
default = tapemgr;
};
});
}