git.iko.soy/typeable/cabal2nix
on master help sign in
Export the "revision" attribute in the generated Nix expression.
6e5dea8Peter Simons
src/Distribution/Nixpkgs/Haskell.hs+1
@@ -80,6 +80,7 @@ renderDerivation (MkDerivation {..}) =
80 , nest 2 $ vcat
80 , nest 2 $ vcat
81 [ attr "pname" $ string pname
81 [ attr "pname" $ string pname
82 , attr "version" $ doubleQuotes (disp version)
82 , attr "version" $ doubleQuotes (disp version)
83+ , onlyIf (revision > 0) $ attr "revision" $ doubleQuotes (int revision)
83 , sourceAttr src
84 , sourceAttr src
84 , onlyIf (not (null editedCabalFile)) $ attr "editedCabalFile" $ string editedCabalFile
85 , onlyIf (not (null editedCabalFile)) $ attr "editedCabalFile" $ string editedCabalFile
85 , boolattr "isLibrary" (not isLibrary || isExecutable) isLibrary
86 , boolattr "isLibrary" (not isLibrary || isExecutable) isLibrary