nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoconf,
6 automake,
7 libtool,
8}:
9
10stdenv.mkDerivation (finalAttrs: {
11 pname = "scrub";
12 version = "2.6.1";
13
14 src = fetchFromGitHub {
15 owner = "chaos";
16 repo = "scrub";
17 rev = finalAttrs.version;
18 sha256 = "0ndcri2ddzqlsxvy1b607ajyd4dxpiagzx331yyi7hf3ijph129f";
19 };
20
21 nativeBuildInputs = [
22 autoconf
23 automake
24 ];
25 buildInputs = [ libtool ];
26
27 preConfigure = "./autogen.sh";
28
29 meta = {
30 description = "Disk overwrite utility";
31 homepage = "https://github.com/chaos/scrub";
32 changelog = "https://raw.githubusercontent.com/chaos/scrub/master/NEWS";
33 license = lib.licenses.gpl2Plus;
34 maintainers = with lib.maintainers; [ j0hax ];
35 platforms = lib.platforms.unix;
36 mainProgram = "scrub";
37 };
38})