aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/tools/package-management/cde/default.nix
blob: ec6ad6eb55abbda47892059b6b953c28763b5963 (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
{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "cde";
  version = "0.1";

  src = fetchFromGitHub {
    owner = "pgbovine";
    repo = "CDE";
    sha256 = "0raiz7pczkbnzxpg7g59v7gdp1ipkwgms2vh3431snw1va1gjzmk";
    rev = "v${version}";
  };

  # The build is small, so there should be no problem
  # running this locally. There is also a use case for
  # older systems, where modern binaries might not be
  # useful.
  preferLocalBuild = true;

  patchBuild = ''
    sed '/install/d' $src/Makefile > $src/Makefile
  '';
  
  installPhase = ''
    mkdir -p $out/bin
    cp cde $out/bin
    cp cde-exec $out/bin
  '';

  meta = with stdenv.lib; {
    homepage = "https://github.com/pgbovine/CDE";
    description = "A packaging tool for building portable packages";
    license = licenses.gpl3;
    maintainers = [ maintainers.rlupton20 ];
    platforms = platforms.linux;
    # error: architecture aarch64 is not supported by strace
    badPlatforms = [ "aarch64-linux" ];
  };
}