2017-03-23 23:04:36 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2017-03-22 22:44:19 +00:00
|
|
|
|
2017-03-23 23:04:36 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "cde";
|
2017-03-23 23:04:36 +00:00
|
|
|
version = "0.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pgbovine";
|
|
|
|
repo = "CDE";
|
|
|
|
sha256 = "0raiz7pczkbnzxpg7g59v7gdp1ipkwgms2vh3431snw1va1gjzmk";
|
|
|
|
rev = "v${version}";
|
2017-03-22 22:44:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# 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; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pgbovine/CDE";
|
2017-03-22 22:44:19 +00:00
|
|
|
description = "A packaging tool for building portable packages";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.rlupton20 ];
|
|
|
|
platforms = platforms.linux;
|
2018-12-10 03:36:38 +00:00
|
|
|
# error: architecture aarch64 is not supported by strace
|
|
|
|
badPlatforms = [ "aarch64-linux" ];
|
2017-03-22 22:44:19 +00:00
|
|
|
};
|
|
|
|
}
|