mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #25236 from matthewbauer/nix-bundle
nix-bundle: init at 0.1.1
This commit is contained in:
commit
6108ee50b9
2 changed files with 36 additions and 0 deletions
34
pkgs/tools/package-management/nix-bundle/default.nix
Normal file
34
pkgs/tools/package-management/nix-bundle/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ stdenv, lib, fetchFromGitHub, nix, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nix-bundle";
|
||||
name = "${pname}-${version}";
|
||||
version = "0.1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "matthewbauer";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "13730rfnqjv1m2mky2g0cq77yzp2j215zrvy3lhpiwgmh97vviih";
|
||||
};
|
||||
|
||||
buildInputs = [ nix makeWrapper ];
|
||||
|
||||
binPath = lib.makeBinPath [ nix ];
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/bin
|
||||
makeWrapper $out/share/nix-bundle/nix-bundle.sh $out/bin/nix-bundle \
|
||||
--prefix PATH : ${binPath}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
maintainers = [ maintainers.matthewbauer ];
|
||||
platforms = platforms.all;
|
||||
description = "Create bundles from Nixpkgs attributes";
|
||||
license = licenses.mit;
|
||||
homepage = https://github.com/matthewbauer/nix-bundle;
|
||||
};
|
||||
}
|
|
@ -18087,6 +18087,8 @@ with pkgs;
|
|||
|
||||
nixui = callPackage ../tools/package-management/nixui { node_webkit = nwjs_0_12; };
|
||||
|
||||
nix-bundle = callPackage ../tools/package-management/nix-bundle { nix = nixStable; };
|
||||
|
||||
inherit (callPackages ../tools/package-management/nix-prefetch-scripts { })
|
||||
nix-prefetch-bzr
|
||||
nix-prefetch-cvs
|
||||
|
|
Loading…
Reference in a new issue