mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
dcs: init at unstable-2021-04-07
This commit is contained in:
parent
7639d0f7f5
commit
e18a2ee062
48
pkgs/tools/text/dcs/default.nix
Normal file
48
pkgs/tools/text/dcs/default.nix
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
{ lib
|
||||||
|
, buildGoModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
, python3Packages
|
||||||
|
, perl
|
||||||
|
, zopfli
|
||||||
|
, stdenv
|
||||||
|
}:
|
||||||
|
buildGoModule {
|
||||||
|
pname = "dcs";
|
||||||
|
version = "unstable-2021-04-07";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Debian";
|
||||||
|
repo = "dcs";
|
||||||
|
rev = "da46accc4d55e9bfde1a6852ac5a9e730fcbbb2c";
|
||||||
|
sha256 = "N+6BXlKn1YTlh0ZdPNWa0nuJNcQtlUIc9TocM8cbzQk=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "l2mziuisx0HzuP88rS5M+Wha6lu8P036wJYZlmzjWfs=";
|
||||||
|
|
||||||
|
# Depends on dcs binaries
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
python3Packages.slimit
|
||||||
|
(perl.withPackages (p: [ p.CSSMinifier ]))
|
||||||
|
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;
|
||||||
|
maintainers = teams.determinatesystems.members;
|
||||||
|
broken = stdenv.isAarch64;
|
||||||
|
};
|
||||||
|
}
|
@ -3782,6 +3782,8 @@ in
|
|||||||
|
|
||||||
dcraw = callPackage ../tools/graphics/dcraw { };
|
dcraw = callPackage ../tools/graphics/dcraw { };
|
||||||
|
|
||||||
|
dcs = callPackage ../tools/text/dcs { };
|
||||||
|
|
||||||
dcfldd = callPackage ../tools/system/dcfldd { };
|
dcfldd = callPackage ../tools/system/dcfldd { };
|
||||||
|
|
||||||
debianutils = callPackage ../tools/misc/debianutils { };
|
debianutils = callPackage ../tools/misc/debianutils { };
|
||||||
|
Loading…
Reference in New Issue
Block a user