mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 06:01:15 +00:00
5ea4160b33
fix the executable bit for scripts installed with substituteAll and some remaining shebangs.
24 lines
499 B
Nix
24 lines
499 B
Nix
{ stdenv, rpm, cpio, substituteAll }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "rpmextract";
|
|
|
|
buildCommand = ''
|
|
install -Dm755 $script $out/bin/rpmextract
|
|
'';
|
|
|
|
script = substituteAll {
|
|
src = ./rpmextract.sh;
|
|
isExecutable = true;
|
|
inherit rpm cpio;
|
|
inherit (stdenv) shell;
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Script to extract RPM archives";
|
|
platforms = platforms.all;
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|