mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-17 18:34:38 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
33 lines
1.0 KiB
Nix
33 lines
1.0 KiB
Nix
{ lib, fetchurl, appimageTools }:
|
|
|
|
let
|
|
pname = "bootstrap-studio";
|
|
version = "6.7.3";
|
|
src = fetchurl {
|
|
url = "https://releases.bootstrapstudio.io/${version}/Bootstrap%20Studio.AppImage";
|
|
sha256 = "sha256-Wcqhn4h5UZIYDkC5OcfWLc0hQ3liMD8tcppAva8t62A=";
|
|
};
|
|
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
|
in
|
|
appimageTools.wrapType2 {
|
|
inherit pname version src;
|
|
|
|
extraInstallCommands = ''
|
|
install -m 444 -D ${appimageContents}/bstudio.desktop -t $out/share/applications
|
|
|
|
substituteInPlace $out/share/applications/bstudio.desktop \
|
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
|
|
|
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/0x0/apps/bstudio.png \
|
|
$out/share/icons/hicolor/512x512/apps/bstudio.png
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Drag-and-drop designer for bootstrap";
|
|
homepage = "https://bootstrapstudio.io/";
|
|
license = licenses.unfree;
|
|
maintainers = with maintainers; [ khushraj ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|