2021-05-10 12:52:25 +02:00
|
|
|
{ buildGoModule, fetchurl, lib, zstd }:
|
2021-01-17 19:33:00 +01:00
|
|
|
|
2021-05-10 12:52:25 +02:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "goredo";
|
|
|
|
version = "1.4.1";
|
2021-01-17 19:33:00 +01:00
|
|
|
|
2021-05-10 12:52:25 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.goredo.cypherpunks.ru/download/${pname}-${version}.tar.zst";
|
|
|
|
sha256 = "Wc+QIrkrsGA35KeI2UmYOUiyU78ItPQGCKpZO/vndxM=";
|
2021-01-17 19:33:00 +01:00
|
|
|
};
|
|
|
|
|
2021-05-10 12:52:25 +02:00
|
|
|
nativeBuildInputs = [ zstd ];
|
2021-01-17 19:33:00 +01:00
|
|
|
|
2021-05-10 12:52:25 +02:00
|
|
|
vendorSha256 = null;
|
|
|
|
subPackages = [ "." ];
|
2021-01-17 19:33:00 +01:00
|
|
|
|
2021-05-10 12:52:25 +02:00
|
|
|
postPatch = "cd src";
|
2021-01-17 19:33:00 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p "$out/share/info"
|
2021-05-10 12:52:25 +02:00
|
|
|
cp ../goredo.info "$out/share/info"
|
|
|
|
( cd $out/bin; ./goredo -symlinks )
|
2021-01-17 19:33:00 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
outputs = [ "out" "info" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2021-05-10 12:52:25 +02:00
|
|
|
description = "djb's redo, a system for building files from source files. Written in Go";
|
2021-01-17 19:33:00 +01:00
|
|
|
homepage = "https://www.goredo.cypherpunks.ru";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2021-05-10 12:52:25 +02:00
|
|
|
maintainers = [ maintainers.spacefrogg ];
|
2021-01-17 19:33:00 +01:00
|
|
|
};
|
|
|
|
}
|