tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
mufetch: init at 0.1.1
Ashish Kumar
8 months ago
327ec54b
7e16b797
+50
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
mu
mufetch
package.nix
+50
pkgs/by-name/mu/mufetch/package.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
buildGoModule,
4
4
+
fetchFromGitHub,
5
5
+
versionCheckHook,
6
6
+
nix-update-script,
7
7
+
writableTmpDirAsHomeHook,
8
8
+
}:
9
9
+
10
10
+
buildGoModule (finalAttrs: {
11
11
+
pname = "mufetch";
12
12
+
version = "0.1.1";
13
13
+
14
14
+
src = fetchFromGitHub {
15
15
+
owner = "ashish0kumar";
16
16
+
repo = "mufetch";
17
17
+
tag = "v${finalAttrs.version}";
18
18
+
hash = "sha256-iYqLfxJDh0k4tCYfEP40sf3oFLtkvThsJ7ub9KThDNE=";
19
19
+
};
20
20
+
21
21
+
vendorHash = "sha256-aXSNM6z/U+2t0aGtr5MIjTb7huAQY/yRf6Oc1udLJYI=";
22
22
+
23
23
+
ldflags = [
24
24
+
"-s"
25
25
+
"-w"
26
26
+
"-X github.com/ashish0kumar/mufetch/cmd.version=${finalAttrs.version}"
27
27
+
];
28
28
+
29
29
+
nativeBuildInputs = [
30
30
+
writableTmpDirAsHomeHook
31
31
+
];
32
32
+
33
33
+
doInstallCheck = true;
34
34
+
nativeInstallCheckInputs = [
35
35
+
versionCheckHook
36
36
+
];
37
37
+
versionCheckKeepEnvironment = [ "HOME" ];
38
38
+
39
39
+
passthru.updateScript = nix-update-script { };
40
40
+
41
41
+
meta = {
42
42
+
changelog = "https://github.com/ashish0kumar/mufetch/releases/tag/v${finalAttrs.version}";
43
43
+
description = "Neofetch-style CLI for music metadata with album art display";
44
44
+
homepage = "https://github.com/ashish0kumar/mufetch";
45
45
+
license = lib.licenses.mit;
46
46
+
maintainers = with lib.maintainers; [ ashish0kumar ];
47
47
+
mainProgram = "mufetch";
48
48
+
platforms = lib.platforms.unix;
49
49
+
};
50
50
+
})