aboutsummaryrefslogtreecommitdiff
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/commento/default.nix20
-rw-r--r--pkgs/default.nix1
2 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/commento/default.nix b/pkgs/commento/default.nix
new file mode 100644
index 0000000..6361583
--- /dev/null
+++ b/pkgs/commento/default.nix
@@ -0,0 +1,20 @@
1{ stdenv, fetchurl, patchelfUnstable, autoPatchelfHook }:
2stdenv.mkDerivation rec {
3 pname = "commento";
4 version = "v1.8.0";
5 name = "${pname}-${version}";
6 src = fetchurl {
7 url = "https://dl.commento.io/release/${name}-linux-glibc-amd64.tar.gz";
8 sha256 = "1j88b16hdx3i8nsq56581cscij65slgbsa6yfj73ybbg1585axxs";
9 };
10 phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
11 unpackPhase = ''
12 tar --one-top-level=${name} -xf "$src"
13 '';
14 installPhase = ''
15 cp -a ${name} $out
16 '';
17 postFixup = ''
18 ${patchelfUnstable}/bin/patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/commento
19 '';
20}
diff --git a/pkgs/default.nix b/pkgs/default.nix
index 3b0e937..03fee4f 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -8,6 +8,7 @@ rec {
8 myEnvironments = callPackage ../environments {}; 8 myEnvironments = callPackage ../environments {};
9 boinctui = callPackage ./boinctui {}; 9 boinctui = callPackage ./boinctui {};
10 cnagios = callPackage ./cnagios { inherit mylibs; }; 10 cnagios = callPackage ./cnagios { inherit mylibs; };
11 commento = callPackage ./commento {};
11 duply = callPackage ./duply {}; 12 duply = callPackage ./duply {};
12 flrn = callPackage ./flrn { inherit mylibs; slang = callPackage ./slang_1 {}; }; 13 flrn = callPackage ./flrn { inherit mylibs; slang = callPackage ./slang_1 {}; };
13 genius = callPackage ./genius {}; 14 genius = callPackage ./genius {};