git.iko.soy/typeable/cabal2nix
on master help sign in
Add a "please don't edit" comment at the top of every auto-generated expression.
commit13f03986edd44a3a13114c73cb8b0eadeef99bb0 authorPeter Simons <simons@cryp.to> dateMon 14 Jul 2014, 13:22 (12 years ago) parent243b9a9
1 file changed+4−1
src/Distribution/NixOS/Derivation/Cabal.hs+4−1
src/Distribution/NixOS/Derivation/Cabal.hs+4−1
@@ -72,7 +72,10 @@ instance Package Derivation where
7272 packageId deriv = PackageIdentifier (PackageName (pname deriv)) (version deriv)
7373
7474renderDerivation :: Derivation -> Doc
75−renderDerivation deriv = funargs (map text ("cabal" : inputs)) $$ vcat
75+renderDerivation deriv =
76+ text "# This file was auto-generated by cabal2nix. Please do NOT edit manually!" $$
77+ text "" $$
78+ funargs (map text ("cabal" : inputs)) $$ vcat
7679 [ text ""
7780 , text "cabal.mkDerivation" <+> lparen <> text "self" <> colon <+> lbrace
7881 , nest 2 $ vcat