about summary refs log tree commit diff
path: root/pkgs/applications/virtualization
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2022-03-05 01:27:55 -0300
committerGitHub <noreply@github.com>2022-03-05 01:27:55 -0300
commit856b1f7bdc750d3b6cea63ff0d04b500f0b3a631 (patch)
tree24f30bfa1347a477c8071d43e86291399e0c2f3f /pkgs/applications/virtualization
parent8666bd0b693ff34fea3e4b777b4367fa1d6c5e04 (diff)
parentc2fc98a4aa14fbea8d4318094eafad889a3f86a9 (diff)
downloadnixlib-856b1f7bdc750d3b6cea63ff0d04b500f0b3a631.tar
nixlib-856b1f7bdc750d3b6cea63ff0d04b500f0b3a631.tar.gz
nixlib-856b1f7bdc750d3b6cea63ff0d04b500f0b3a631.tar.bz2
nixlib-856b1f7bdc750d3b6cea63ff0d04b500f0b3a631.tar.lz
nixlib-856b1f7bdc750d3b6cea63ff0d04b500f0b3a631.tar.xz
nixlib-856b1f7bdc750d3b6cea63ff0d04b500f0b3a631.tar.zst
nixlib-856b1f7bdc750d3b6cea63ff0d04b500f0b3a631.zip
Merge pull request #160251 from AtilaSaraiva/distrobox
distrobox: init at 1.2.13
Diffstat (limited to 'pkgs/applications/virtualization')
-rw-r--r--pkgs/applications/virtualization/distrobox/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/distrobox/default.nix b/pkgs/applications/virtualization/distrobox/default.nix
new file mode 100644
index 000000000000..8e9ea890a9b6
--- /dev/null
+++ b/pkgs/applications/virtualization/distrobox/default.nix
@@ -0,0 +1,38 @@
+{ stdenvNoCC, lib, fetchFromGitHub }:
+
+stdenvNoCC.mkDerivation rec {
+  pname = "distrobox";
+  version = "1.2.13";
+
+  src = fetchFromGitHub {
+    owner = "89luca89";
+    repo = pname;
+    rev = version;
+    sha256 = "047mrhsfi88mgwylnnyxg6xa7hjjrajn2pf7vfmb6161myqybvfy";
+  };
+
+  dontConfigure = true;
+  dontBuild = true;
+
+  installPhase = ''
+    runHook preInstall
+
+    mkdir -p $out/bin
+    ./install -p $out/bin
+
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    description = "Wrapper around podman or docker to create and start containers";
+    longDescription = ''
+      Use any linux distribution inside your terminal. Enable both backward and
+      forward compatibility with software and freedom to use whatever distribution
+      you’re more comfortable with
+    '';
+    homepage = "https://distrobox.privatedns.org/";
+    license = licenses.gpl3Only;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ atila ];
+  };
+}