mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
releaseTools.debBuild: stop quoting debName and debMaintainer twice
The flags were built as --pkgname="'$debName'", so checkinstall got the single quotes as part of the value. A debName of "nix" came out as a package called "0-nix-". Pass the values through as they are, and check both in the debBuild test. Assisted-by: Claude Code (claude-opus-5-5)
This commit is contained in:
@@ -75,8 +75,8 @@ vmTools.runInLinuxImage (
|
||||
${
|
||||
if (src ? version) then "--pkgversion=$(echo ${src.version} | tr _ -)" else "--pkgversion=0.0.0"
|
||||
} \
|
||||
''${debMaintainer:+--maintainer="'$debMaintainer'"} \
|
||||
''${debName:+--pkgname="'$debName'"} \
|
||||
''${debMaintainer:+--maintainer="$debMaintainer"} \
|
||||
''${debName:+--pkgname="$debName"} \
|
||||
$checkInstallFlags \
|
||||
-- \
|
||||
$SHELL -c "''${installCommand:-make install}"
|
||||
|
||||
@@ -93,7 +93,11 @@ in
|
||||
diskImage = diskImages.debian13x86_64;
|
||||
diskImageFormat = "qcow2";
|
||||
meta.description = "GNU hello, built as a .deb";
|
||||
debName = "gnu-hello";
|
||||
debMaintainer = "Nixpkgs <nixpkgs@example.org>";
|
||||
postInstall = ''
|
||||
test "$(dpkg-deb --field $out/debs/*.deb Package)" = gnu-hello
|
||||
test "$(dpkg-deb --field $out/debs/*.deb Maintainer)" = "Nixpkgs <nixpkgs@example.org>"
|
||||
dpkg-deb --contents $out/debs/*.deb > contents
|
||||
grep -q '\./usr/bin/hello$' contents
|
||||
if grep '\./nix/' contents; then
|
||||
|
||||
Reference in New Issue
Block a user