blob: 5f46344f6042de377b7c1d32383db2e205ac3faa (
plain)
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
|
# mostly lifted from https://github.com/xddxdd/nur-packages, converted into a standalone flake
{
description = "A terminal client for *sonic music servers. Inspired by ncmpcpp.";
inputs = {
stmp-src = {
url = sourcehut:~ser/stmp;
flake = false;
};
};
outputs =
{ self
, stmp-src
, nixpkgs
}:
let
supportedSystems = [ "x86_64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
nixpkgsFor = forAllSystems (system: import nixpkgs {
inherit system;
overlays = [ self.overlays.default ];
});
in
{
overlays.default = final: prev: {
stmp =
final.buildGoModule {
vendorHash = "sha256-53Oat/48PtOXtITxU5j1VmHy0vCB6UzyqjDzkfZFrYI=";
pname = "stmp";
version = "master";
src = stmp-src;
buildInputs = [ final.mpv final.pkg-config final.libGL.dev final.xorg.libX11 ];
CGO_ENABLED = 1;
};
};
packages = forAllSystems (system: {
inherit (nixpkgsFor."${system}") stmp;
});
defaultPackage = forAllSystems (system: self.packages."${system}".stmp);
};
}
|