nixpkgs/pkgs/tools/text/dcs/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.0 KiB
Nix
Raw Normal View History

2021-04-20 04:00:54 +03:00
{ lib
, buildGoModule
, fetchFromGitHub
, yuicompressor
2021-04-20 04:00:54 +03:00
, zopfli
, stdenv
}:
buildGoModule {
pname = "dcs";
version = "unstable-2021-04-07";
src = fetchFromGitHub {
owner = "Debian";
repo = "dcs";
rev = "da46accc4d55e9bfde1a6852ac5a9e730fcbbb2c";
2023-09-21 17:23:40 +03:00
hash = "sha256-N+6BXlKn1YTlh0ZdPNWa0nuJNcQtlUIc9TocM8cbzQk=";
2021-04-20 04:00:54 +03:00
};
2023-09-21 17:23:40 +03:00
vendorHash = "sha256-l2mziuisx0HzuP88rS5M+Wha6lu8P036wJYZlmzjWfs=";
2021-04-20 04:00:54 +03:00
# Depends on dcs binaries
doCheck = false;
nativeBuildInputs = [
yuicompressor
2021-04-20 04:00:54 +03:00
zopfli
];
postBuild = ''
make -C static -j$NIX_BUILD_CORES
'';
postInstall = ''
mkdir -p $out/share/dcs
cp -r cmd/dcs-web/templates $out/share/dcs
cp -r static $out/share/dcs
'';
meta = with lib; {
description = "Debian Code Search";
homepage = "https://github.com/Debian/dcs";
license = licenses.bsd3;
2023-03-22 17:11:26 +03:00
maintainers = [ ];
2021-12-24 02:48:25 +03:00
broken = stdenv.isAarch64
|| stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/staging-next/dcs.x86_64-darwin
2021-04-20 04:00:54 +03:00
};
}