gnuk: replace configurePhase with configureFlags and sourceRoot

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
This commit is contained in:
Fernando Rodrigues 2024-10-31 15:42:19 +00:00
parent 4e63264c54
commit ac2bd873a3
No known key found for this signature in database
GPG Key ID: CC3AE2EA00000000

View File

@ -34,12 +34,11 @@ stdenv.mkDerivation {
colorama
];
configurePhase = ''
cd src
patchShebangs configure
./configure --vidpid=${vid}:${pid}
'';
sourceRoot = "${finalAttrs.src.name}/src";
configureFlags = [ "--vidpid=${vid}:${pid}" ];
# TODO: Check how many of these patches are actually needed.
installPhase = ''
mkdir -p $out/bin