nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5}:
6
7stdenv.mkDerivation {
8 pname = "shncpd";
9 version = "2016-06-22";
10
11 src = fetchFromGitHub {
12 owner = "jech";
13 repo = "shncpd";
14 rev = "62ef688db7a6535ce11e66c8c93ab64a1bb09484";
15 sha256 = "1sj7a77isc2jmh7gw2naw9l9366kjx6jb909h7spj7daxdwvji8f";
16 };
17
18 hardeningEnable = [ "pie" ];
19
20 preConfigure = ''
21 makeFlags=( "PREFIX=$out" )
22 '';
23
24 meta = with lib; {
25 description = "Simple, stupid and slow HNCP daemon";
26 homepage = "https://www.irif.univ-paris-diderot.fr/~jch/software/homenet/shncpd.html";
27 license = licenses.mit;
28 platforms = platforms.linux;
29 maintainers = [ maintainers.fpletz ];
30 mainProgram = "shncpd";
31 };
32}