git.iko.soy/typeable/cabal2nix
on master help sign in
Export the "revision" attribute in the generated Nix expression.

One half of the fix for https://github.com/NixOS/nixpkgs/issues/6914.

commit6e5dea88ea64d1687d6c616a3e94f99a7244a701 authorPeter Simons <simons@cryp.to> dateTue 24 Mar 2015, 19:48 (12 years ago) parenta8eaadb
1 file changed+1
src/Distribution/Nixpkgs/Haskell.hs+1
src/Distribution/Nixpkgs/Haskell.hs+1
@@ -80,6 +80,7 @@ renderDerivation (MkDerivation {..}) =
8080 , nest 2 $ vcat
8181 [ attr "pname" $ string pname
8282 , attr "version" $ doubleQuotes (disp version)
83+ , onlyIf (revision > 0) $ attr "revision" $ doubleQuotes (int revision)
8384 , sourceAttr src
8485 , onlyIf (not (null editedCabalFile)) $ attr "editedCabalFile" $ string editedCabalFile
8586 , boolattr "isLibrary" (not isLibrary || isExecutable) isLibrary