1- { lib , stdenv , fetchFromGitHub } :
1+ {
2+ lib ,
3+ stdenv ,
4+ fetchFromGitHub ,
5+ pandoc ,
6+ } :
27
3- stdenv . mkDerivation rec {
8+ stdenv . mkDerivation ( finalAttrs : {
49 pname = "fscryptctl" ;
5- version = "1.0.0" ;
6-
7- goPackagePath = "github.com/google/fscrypt" ;
10+ version = "1.2.0" ;
811
912 src = fetchFromGitHub {
1013 owner = "google" ;
1114 repo = "fscryptctl" ;
12- rev = "v${ version } " ;
13- sha256 = "1hwj726mm0yhlcf6523n07h0yq1rvkv4km64h3ydpjcrcxklhw6l " ;
15+ rev = "v${ finalAttrs . version } " ;
16+ hash = "sha256-5suEdSpX8alDkSnSnyiIjUmZq98eK0ZPVAtDKhOs65c= " ;
1417 } ;
1518
19+ nativeBuildInputs = [ pandoc ] ;
20+
21+ strictDeps = true ;
22+
1623 makeFlags = [ "PREFIX=${ placeholder "out" } " ] ;
1724
18- meta = with lib ; {
25+ meta = {
1926 description = "Small C tool for Linux filesystem encryption" ;
2027 mainProgram = "fscryptctl" ;
2128 longDescription = ''
@@ -32,10 +39,10 @@ stdenv.mkDerivation rec {
3239 As fscryptctl is intended for advanced users, you should read the kernel
3340 documentation for filesystem encryption before using fscryptctl.
3441 '' ;
35- inherit ( src . meta ) homepage ;
36- changelog = "https://github.com/google/fscryptctl/releases/tag/v ${ version } " ;
37- license = licenses . asl20 ;
38- platforms = platforms . linux ;
39- maintainers = with maintainers ; [ primeos ] ;
42+ inherit ( finalAttrs . src . meta ) homepage ;
43+ changelog = "https://github.com/google/fscryptctl/blob/master/NEWS.md " ;
44+ license = lib . licenses . asl20 ;
45+ platforms = lib . platforms . linux ;
46+ maintainers = with lib . maintainers ; [ primeos ] ;
4047 } ;
41- }
48+ } )
0 commit comments